﻿#ifndef PST_SURFACEELECTRICFIELDMAPSELECTDATADIALOG_H
#define PST_SURFACEELECTRICFIELDMAPSELECTDATADIALOG_H

#include <QDialog>
#include "ui_SurfaceElectricFieldMapSelectDataDialog.h"
#include "BaseWidget/IdaDialogFrame.h"
#include "InfomationGraph3DBasical.h"
#include "FieldGraphGenerator.h"

namespace pst
{
    class SurfaceElectricFieldMapSelectDataDialog : public IdaDialogFrame
    {
        Q_OBJECT

    public:
        SurfaceElectricFieldMapSelectDataDialog(QWidget* parent = nullptr);
        ~SurfaceElectricFieldMapSelectDataDialog();

        //void setValueNameList(const QList<FieldGraphGenerator::ArrayInformation>& valueNameList);
        //QList<FieldGraphGenerator::ArrayInformation> getValueNameList();

        void setInfomationGraph3DBasical(InfomationGraph3DBasical* info);
        InfomationGraph3DBasical* getInfomationGraph3DBasical();
        void setIsOpenNewWindow(bool isOpenNewWindow)
        {
            m_isOpenNewWindow = isOpenNewWindow;
        }

    signals:
        void signal_sentChosenArrayInfo(InfomationGraph3DBasical* info,bool isOpenNewWindow);

    public slots:
        void slot_buttonBox_accepted();
        void slot_buttonBox_rejected();

    private:
        Ui::SurfaceElectricFieldMapSelectDataDialog ui;
        QList<FieldGraphGenerator::ArrayInformation> m_addedArrayList;
        InfomationGraph3DBasical* m_info;
        bool m_isOpenNewWindow;

    };
}
#endif
